package com.xqb.modules.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.xqb.modules.domain.po.ExaExamDetail;
import com.xqb.modules.mapper.ExaExamDetailMapper;
import com.xqb.modules.service.IExaExamDetailService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author 2092466583
 * @description 针对表【exa_exam_detail】的数据库操作Service实现
 * @createDate 2024-10-18 09:53:10
 */
@Service
public class ExaExamDetailServiceImpl extends ServiceImpl<ExaExamDetailMapper, ExaExamDetail>
        implements IExaExamDetailService {
    @Autowired
    private ExaExamDetailMapper exaExamDetailMapper;

    /**
     * 查询考试或测验详情
     *
     * @param id 考试或测验详情主键
     * @return 考试或测验详情
     */
    @Override
    public ExaExamDetail selectExaExamDetailById(Long id) {
        return exaExamDetailMapper.selectExaExamDetailById(id);
    }

    /**
     * 查询考试或测验详情列表
     *
     * @param exaExamDetail 考试或测验详情
     * @return 考试或测验详情
     */
    @Override
    public List<ExaExamDetail> selectExaExamDetailList(ExaExamDetail exaExamDetail) {
        return exaExamDetailMapper.selectExaExamDetailList(exaExamDetail);
    }

    /**
     * 新增考试或测验详情
     *
     * @param exaExamDetail 考试或测验详情
     * @return 结果
     */
    @Override
    public int insertExaExamDetail(ExaExamDetail exaExamDetail) {
        return exaExamDetailMapper.insertExaExamDetail(exaExamDetail);
    }

    /**
     * 修改考试或测验详情
     *
     * @param exaExamDetail 考试或测验详情
     * @return 结果
     */
    @Override
    public int updateExaExamDetail(ExaExamDetail exaExamDetail) {
        return exaExamDetailMapper.updateExaExamDetail(exaExamDetail);
    }

    /**
     * 批量删除考试或测验详情
     *
     * @param ids 需要删除的考试或测验详情主键
     * @return 结果
     */
    @Override
    public int deleteExaExamDetailByIds(Long[] ids) {
        return exaExamDetailMapper.deleteExaExamDetailByIds(ids);
    }

    /**
     * 删除考试或测验详情信息
     *
     * @param id 考试或测验详情主键
     * @return 结果
     */
    @Override
    public int deleteExaExamDetailById(Long id) {
        return exaExamDetailMapper.deleteExaExamDetailById(id);
    }
}




